import 'package:dmz/base/pageWidget/base_stateful_widget.dart';
import 'package:dmz/business/mine/controller/mine_main_controller.dart';
import 'package:dmz/business/mine/widget/mine_widgets.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

class MinePage extends BaseStatefulWidget<MinePageController> {
  const MinePage({super.key});

  @override
  bool showTitleBar() => false;

  @override
  Widget buildContent(BuildContext context) {
    return Stack(alignment: Alignment.topCenter, children: [
      MineWidgets.mainWidget(
          controller.motoList, controller.pageIndex, controller.bottomTurn),
      Positioned(
          top: 100.sp + Get.mediaQuery.padding.top,
          child: MineWidgets.headImageWidget()),
      Positioned(
          top: Get.mediaQuery.padding.top,
          right: 32.sp,
          child: Image.asset('assets/images/user/set_icon.png',
                  width: 96.sp, height: 96.sp)
              .addGestureDetector(() => controller.bottomTurn(6)))
    ]);
  }
}
